<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>示例3</title>
</head>
<body>
    <div id="app">
        <!--json数据(变量)-->
        <h1>{{msg}}</h1>
         <!--数字-->
        <h1>{{10}}</h1>
         <!--字符串-->
        <h1>{{"string"}}</h1>
         <!--表达式-->
        <h1>{{12+13}}</h1>
        <h1>{{"hello"+name}}</h1>
        <h1>{{ 2>3 ? "true":"flase"}}</h1>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
    <script>
        var vm=new Vue({
            el:'#app',
            data:{
                msg:"hello",
                name:"三毛"
            }
        });
    </script>
</body>
</html>